Determines whether the current value is different from null reference (Nothing in Visual Basic) and empty.

Namespace: Keystone.Polaris
Assembly: Keystone (in Keystone.dll)

public static bool IsNotNullNorEmpty<TBaseValue>( 
this TBaseValue valueOf
Func<TBaseValue, bool> usingComparison = null 
)
This language is not supported or no code example is available.

Type Parameters

TBaseValue

The type of the current value.

Parameters

valueOf

Type: TBaseValue

The current value.

usingComparison

Type: Func<TBaseValue, bool>

The optional comparison function to test the current value for non-nullability and non-emptiness. The implementation of this method is base on T_Comparison.IsNull and T_Comparison.IsEmpty, therefore if no comparison function is given, the rules of these methods are used to provide a default comparison mean.

Return Value

true if the given value is different from null reference (Nothing in Visual Basic) and empty; otherwise, false.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono